package com.ludomancy.breathe;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import com.ludomancy.gamelib.Theme;

public class GameTheme extends Theme
{
	public Font textFont; //= new Font("Verdana",Font.BOLD, 12);
	public Font idleBarFont; //= new Font("Verdana",Font.BOLD, 12);
	public Font tinyFont;
	
	public static GameTheme theme;
	
	public GameTheme()
	{
		theme = this;
		
		defaultFont = new Font("Arial",Font.BOLD, 14);
		try
		{
			textFont = defaultFont.deriveFont(Font.BOLD, 14 );
			idleBarFont = textFont.deriveFont(Font.PLAIN, 14 );
			tinyFont = defaultFont.deriveFont(Font.PLAIN, 17 );
		}
		catch (Exception e)
		{
		}
		
	}
		
	public void fillUIBackground(Graphics g, Rectangle area)
	{
		g.setColor(getUIBackgroundColor());
		g.fillRoundRect(0, 0, area.width, area.height, 10, 10);
		g.setColor(getDefaultBorderColor());
		g.drawRoundRect(0, 0, area.width-1, area.height-1, 10, 10);
	}
	
	public Color getDefaultTextColor()
	{
		return new Color(0x703900);
	}
	
	public Color getDefaultBorderColor()
	{
		return Color.WHITE;
	}
	
	public Color getUIBackgroundColor()
	{
		return new Color(0xE6E5D6);
	}
	
	public void fillButton(Graphics g, Rectangle area, boolean etched)
	{
		Graphics2D g2 = (Graphics2D) g;
		g2.setColor(new Color(0xD4D2BE));
		g2.fill3DRect(0, 0, area.width-1, area.height-1, !etched);
	}
}
